genetic algorithm problem with solution